package it.univaq.mwt.backoffice.form;




import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.*;
import org.apache.struts.validator.ValidatorForm;


public class NewsForm extends ValidatorForm
{
	private String title = null;
	private String description = null;
	private String linkNews = null;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLinkNews() {
		return linkNews;
	}

	public void setLinkNews(String linkNews) {
		this.linkNews = linkNews;
	}

	private static final long serialVersionUID = 1L;
	    public void reset(ActionMapping mapping, HttpServletRequest request) {
        
	    	this.title = null;
	    	this.linkNews = null;
        }

        /**
         * Reset all properties to their default values.
         *
         * @param mapping The mapping used to select this instance
         * @param request The servlet request we are processing
       * @return errors
         */
//      public ActionErrors validate( 
//          ActionMapping mapping, HttpServletRequest request ) {
//          ActionErrors errors = new ActionErrors();
//      	
//          return errors;
//      }
	
}
